import java.awt.BorderLayout;
import java.awt.Component;

import javax.swing.*;


public class frametutorial 
{
	public frametutorial()
	{
		JFrame example = new JFrame("Tutorial");
		example.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JLabel Label = new JLabel(" A text Label");
		example.getContentPane().add(Label, BorderLayout.CENTER);
		example.setBounds(0, 0, 300, 400);
		
		example.setVisible(true);
	}
	
	public static void main(String[] args) //run program
	{
		frametutorial FT = new frametutorial();
	}
	
}
	
